import request from '@/utils/request'

export const getEmployeeAPI = (params) => {
  return request({ url: '/park/sys/user', params })
}

export const addEmpAPI = (data) => {
  return request({
    url: '/park/sys/user',
    data
  })
}

export const editEmpAPI = (data) => {
  return request({
    url: '/park/sys/user',
    method: 'put',
    data
  })
}
export const getEmpDetailAPI = (data) => {
  return request({
    url: '/park/sys/user/' + data.id

  })
}
export const delEmpAPI = (id) => {
  return request({
    url: '/park/sys/role/' + id,
    method: 'delete'

  })
}
